home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip1292.zip / MAKE.INI < prev    next >
Text File  |  1992-12-26  |  4KB  |  191 lines

  1. #
  2. #  Master MAKE.INI file for NDMAKE
  3. #
  4. #  jim nutt
  5. #  'the computer handyman'
  6. #
  7.  
  8. .SUFFIXES : .doc .exe .prf .obj .cpp .c .a86 .asm .com .a86
  9.  
  10. #
  11. # generate response files for these as well as lib and link
  12. #
  13.  
  14. .RESPONSE_LINK: tlink blink ztcmap
  15. .RESPONSE_LIB:  tlib zorlib
  16.  
  17. VPATH   = .;c:\include;
  18. MAKE_TMP= $(TMP)
  19.  
  20. #
  21. # some defaults
  22. #
  23.  
  24. project =
  25. obj     =
  26. cc      = ztc
  27. mcflags = $p $s $w
  28. cflags  =
  29.  
  30. #
  31. # zortech c settings
  32. #
  33.  
  34. ztclib     = c:\lib\$(cc)                  # where are the libraries
  35. ztcinclude = c:\include\$(cc)
  36. ztclibrary = $(lib)\zl$(model)
  37. ztccompile = $(cc) -c -m$(options)
  38. ztcoptions = $(model) $(mcflags) -I$(include) -ic:\include
  39. ztcstartup =
  40. ztcwild    =
  41. ztcscheck  = -s
  42. ztcpcheck  =
  43. ztcalign   = -a
  44. ztcunsigned= -J
  45. ztccodeview= -g
  46. ztcmaxwarnings= -p -r
  47. ztcinline  = -f
  48. ztcoptimize= -o+all -o+loop
  49. ztcmodel   = -m
  50. ztcdefine  = -d
  51. ztcstdc    = -A
  52.  
  53. #
  54. # quick c settings
  55. #
  56.  
  57. qcllib     = c:\lib\msc
  58. qclinclude = c:\include\msc
  59. qcllibrary = $(lib)\$(model)libcr $(lib)\libh
  60. qclcompile = qcl /c /X /Zl /A$(options) /D__MSC__=1
  61. qcloptions = $(model) $(mcflags) /I$(include)
  62. qclstartup =
  63. qclwild    =
  64. qclscheck  =
  65. qclpcheck  = /Zr
  66. qclalign   = /Zp
  67. qclunsigned=
  68. qclcodeview= /Zi
  69. qclmaxwarnings = /W3
  70. qclinline  = /FPi87
  71. qcloptimize= /Ox
  72. qclmodel   = /A
  73. qcldefine  = /D
  74. qclstdc    = /Za
  75.  
  76. #
  77. # msc 5.1 settings
  78. #
  79.  
  80. msclib     = c:\lib\msc
  81. mscinclude = c:\include\$(cc)
  82. msclibrary = $(lib)\$(model)libcr $(lib)\libh
  83. msccompile = cl /c /X /Zl /A$(options) /D__MSC__=1
  84. mscoptions = $(model) $(mcflags) /I$(include) /Ic:\include
  85. mscstartup =
  86. mscwild    =
  87. mscscheck  =
  88. mscpcheck  =
  89. mscalign   = /Zp
  90. mscunsigned=
  91. msccodeview= /Zi
  92. mscmaxwarnings = /W3
  93. mscinline  = /FPi87
  94. mscoptimize= /Owilt
  95. mscmodel   = /A
  96. mscdefine  = /D
  97. mscstdc    = /Za
  98.  
  99. #
  100. # turbo c settings
  101. #
  102.  
  103. tcclib     = c:\lib\$(cc)                  # where are the libraries
  104. tccinclude = c:\include\$(cc)
  105. tcclibrary = $(lib)\c$(model)
  106. tcccompile = $(cc) -c -m$(options)
  107. tccoptions = $(model) $(mcflags) -I$(include)
  108. tccstartup = $(lib)\c0$(model)
  109. tccwild    =
  110. tccscheck  = -N
  111. tccpcheck  =
  112. tccalign   = -a-
  113. tccunsigned= -K
  114. tcccodeview= -y
  115. tccmaxwarnings = -w -w-stv
  116. tccinline  = -f87
  117. tccmodel   = -m
  118. tccdefine  = -D
  119. tccoptimize= -O -G -r
  120. tccstdc    = -A
  121.  
  122. lib             = $($(cc)lib)
  123. include         = $($(cc)include)
  124. library         = $($(cc)library)
  125. cxl             = $(lib)\cxl$(model)
  126. options         = $($(cc)options)
  127. compile         = $($(cc)compile) $(cflags)
  128. startup         = $($(cc)startup)
  129. wild            = $($(cc)wild)
  130. libs            = $(library)
  131.  
  132. # compiler options
  133.  
  134. a       = $($(cc)align)         # byte align structures
  135. c       = $($(cc)codeview)      # codeview debugging (if avail, else symdeb)
  136. d       = $($(cc)define)        # command line #define
  137. i       = $($(cc)inline)        # inline 8087 code generation
  138. m       = $($(cc)model)         # memory model selection
  139. p       = $($(cc)pcheck)        # pointer checking (if available)
  140. s       = $($(cc)scheck)        # turn on stack checking
  141. u       = $($(cc)unsigned)      # chars are unsigned
  142. o       = $($(cc)optimize)      # do max optimizations
  143. w       = $($(cc)maxwarnings)   # give maximum warnings
  144. stdc    = $($(cc)stdc)          # use ANSI standard keywords only
  145.  
  146. model   = S
  147.  
  148. # the linker
  149.  
  150. linkopt = /noi
  151. linker  = link
  152.  
  153. # an easy linking macros
  154.  
  155. linklst = $($(project)obj),$(project),$(project),$(libs) $(linkopt);
  156. link    = $(linker) $(wild) $(startup) $(linklst)
  157.  
  158. # default rules
  159.  
  160. markfile :
  161.         calltree -z markfile *.c
  162.  
  163. .c.exe :
  164.         .c.obj
  165.         $(linker) $(wild) $(startup) $*, $* ,$* ,$(libs) $(linkopt);
  166.  
  167. .obj.exe :
  168.         $(link)
  169.  
  170. .c.obj : 
  171.         $(compile) $*.c
  172.  
  173. .cpp.obj :
  174.         $(cc) $*
  175.  
  176. .asm.obj :
  177.         masm $*;
  178.  
  179. .a86.obj :
  180.         a86 +o +s $*.a86 $*.obj
  181.  
  182. .a86.com :
  183.         a86 $*.a86
  184.  
  185. .a86.exe :
  186.         a86 +o +s $*.a86
  187.         link $*;
  188.  
  189. .prf.doc :
  190.         proff $*.prf $*.doc
  191.